//-----------------------------------------------------------------------------
// Dynamic weather - all about rain/snow render Pixel Shader
//-----------------------------------------------------------------------------


#include "DynamicWeatherCommon.hlsl"

uniform sampler g_WeatherTexture		: register( s0 );

    float4 ProcessPixel( VSOUT _input )
    {
		const float ALPHAEPSILON = 0.01f;
		float4 outputColor = tex2D( g_WeatherTexture, _input.UV ) * _input.color;
    	clip( outputColor.a - ALPHAEPSILON );
    	return outputColor;
    }